<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//FR" "http://www.w3.org/TR/html4/strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" version="-//W3C//DTD XHTML 1.1//EN" xml:lang="en">

  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="description" content="Communauté, articles, tutoriels et ressources Ruby on Rails en français"/>
    <meta name="keywords" content="Rails, Ruby, Ruby on Rails, communauté, tutoriel, tutoriels, tutorial, tutorials, documentation, Rails 2.0, RoR, France, Belgique, Canada, Suisse, Français"/>
    <title>Frailers | <%= @page_title || "Communauté, articles, tutoriels et ressources Ruby on Rails en français" %></title>
    <!-- JAVASCRIPTS -->
    <%= javascript_include_tag :defaults %>
    <%= stylesheet_link_tag 'syntax/blackboard' %>
    <%= javascript_include_tag 'niftycube' %>
    <script type="text/javascript">
      window.onload=function(){
       Nifty("#contents", "bottom");
       Nifty("#headermenu li", "top");
      }
    </script>
    <!-- STYLESHEETS -->
    <%= stylesheet_link_tag 'setup' %>
    <%= stylesheet_link_tag 'application', 'syntax/blackboard' %>
    <%= stylesheet_link_tag 'niftyCorners' %>

    <!-- HACKS -->
    <!--[if lt IE 7.]>
    <script defer type="text/javascript" src="javascripts/pngfix.js"></script>
    <link rel="stylesheet" type="text/css" href="stylesheets/iefix.css"/>
    <![endif]-->
    <%= auto_discovery_link_tag :rss, "http://feeds.feedburner.com/FrailersArticles", :title=>"Frailers.net RSS feed" %>
  </head>

  <body>
  	<div id="page">
  		<div id="header">
  		  <div id="accountlinks">
  		    <% if logged_in? %>
  		      Bonjour, <%= current_user.login %> |
  		      <%= link_to "Mon profil", settings_path %> |
  		      <%= link_to "Me déconnecter", logout_path %>
  		    <% else %>
  		      <%= link_to "S'identifier", login_path %> |
    		    <%= link_to "S'inscrire", signup_path %>
  		    <% end %>
  		  </div>
  			<ul id="headermenu">
  				<%= tab('Articles',['articles'],{:controller=>"articles", :action=>"index"}) %>
  				<%= tab('Développeurs',['users'],{:controller=>"users", :action=>"index"}) %>
  				<%= tab('Sociétés',['companies'],{:controller=>"companies", :action=>"index"}) %>
  				<%= tab('Evénements',['events'],{:controller=>"events", :action=>"index"}) %>
  			</ul>
  		</div>
      <div id="submenu">
          <%= render_partial_if_exists('sub_menu') %>
      </div>
  		<div id="contents">
  			<%= content_tag('div', @right_column, :id=>"rightcolumn", :class=>"sidecolumn") if @right_column %>
	      <div id="maincolumn">
	        <%= content_tag('div', flash[:error], :class=>'error-message') if flash[:error] %>
	        <%= content_tag('div', flash[:info], :class=>'info-message') if flash[:info] %>
	        <%= content_tag('div', flash[:ok], :class=>'ok-message') if flash[:ok] %>
	        <%= yield %>
	      </div>
        <div id="clear"></div>
  		</div>
  	</div>
    <div id="footer">
  		<div id="copyright">
  		  &copy; 2007-<%= Date.today.year %> Frailers.net |
  		  <%= link_to "A propos", :controller=>"static", :action=>"about" %> | <%= link_to "Contact", :controller=>"static", :action=>"contact" %>
  		</div>
  	</div>
    <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
    </script>
    <script type="text/javascript">
    _uacct = "UA-3144058-2";
    _udn = "frailers.net";
    urchinTracker();
    </script>
  </body>

</html>